package cn.edu.xmut.chen.zhlg.zhlg.message.param;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@ApiModel(description = "发送消息参数")
public class MessageSendParam {
    @ApiModelProperty(value = "发送者ID", required = true, example = "user_1")
    private String senderId;  // 前端传入

    @ApiModelProperty(value = "接收者ID", required = true, example = "user_2")
    private String receiverId;  // 前端传入

    @ApiModelProperty(value = "聊天ID", required = true, example = "chat_1_2")
    private String chatId;  // 前端生成并传入

    @ApiModelProperty(value = "消息内容", required = true, example = "你好！")
    private String content;  // 前端传入

    @ApiModelProperty(value = "内容类型（1-文本, 2-图片）", required = true, example = "1")
    private Integer contentType;
}